import { _decorator, Component, find, Node } from 'cc';
import { Player } from '../Player';
import { MainLlogic } from '../MainLlogic';
const { ccclass, property } = _decorator;

@ccclass('Complete')
export class Complete extends Component {
    start() {
        this.node.on(Node.EventType.TOUCH_START,()=>{
            find('Canvas/MainLogic/Player').getComponent(Player).getMode()
            find('Canvas/MainLogic').getComponent(MainLlogic).curtainRose()
            this.node.getParent().destroy()
        },this)
    }

    update(deltaTime: number) {
        
    }
}


